using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._LocationReferencingTools._Configuration._LRSEvent
{
    /// <summary>
    /// <para>Enable Derived Measure Fields</para>
    /// <para>Enables fields to store the derived route ID, derived route name, and derived measure fields for the specified LRS event feature class.</para>
    /// <para>启用字段以存储指定 LRS 事件要素类的派生路径 ID、派生路径名称和派生测量字段。</para>
    /// </summary>    
    [DisplayName("Enable Derived Measure Fields")]
    public class EnableDerivedMeasureFields : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public EnableDerivedMeasureFields()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_feature_class">
        /// <para>LRS Event Feature Class</para>
        /// <para>An existing event feature class or feature layer that is registered to an LRS.</para>
        /// <para>注册到 LRS 的现有事件要素类或要素图层。</para>
        /// </param>
        public EnableDerivedMeasureFields(object _in_feature_class)
        {
            this._in_feature_class = _in_feature_class;
        }
        public override string ToolboxName => "Location Referencing Tools";

        public override string ToolName => "Enable Derived Measure Fields";

        public override string CallName => "locref.EnableDerivedMeasureFields";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_feature_class, _derived_route_id_field, _derived_route_name_field, _derived_from_measure_field, _derived_to_measure_field, _out_feature_class];

        /// <summary>
        /// <para>LRS Event Feature Class</para>
        /// <para>An existing event feature class or feature layer that is registered to an LRS.</para>
        /// <para>注册到 LRS 的现有事件要素类或要素图层。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("LRS Event Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_feature_class { get; set; }


        /// <summary>
        /// <para>Derived Route ID Field</para>
        /// <para>The derived route ID field.</para>
        /// <para>派生的路由 ID 字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Derived Route ID Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _derived_route_id_field { get; set; } = null;


        /// <summary>
        /// <para>Derived Route Name Field</para>
        /// <para>The derived route name field.</para>
        /// <para>派生的路由名称字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Derived Route Name Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _derived_route_name_field { get; set; } = null;


        /// <summary>
        /// <para>Derived (From) Measure Field</para>
        /// <para>The derived from measure field.</para>
        /// <para>派生自 measure 字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Derived (From) Measure Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _derived_from_measure_field { get; set; } = null;


        /// <summary>
        /// <para>Derived To Measure Field</para>
        /// <para>The derived to measure field.</para>
        /// <para>派生的测量字段。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Derived To Measure Field")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _derived_to_measure_field { get; set; } = null;


        /// <summary>
        /// <para>Updated Input Feature Class</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_feature_class { get; set; }


        public EnableDerivedMeasureFields SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}